/*
 * @Descripttion:
 * @version:
 * @Author: kl2018
 * @Date: 2019-03-07 20:06:15
 * @LastEditors: kl2018
 * @LastEditTime: 2020-05-08 14:53:47
 */
import { WeaTools } from 'ecCom';

export const getSearchReqList = params => WeaTools.callApi('/api/odoc/odocAccountList/getAccountList', 'POST', params);

export const getCondition = params => WeaTools.callApi('/api/odoc/odocAccountList/getCondition', 'POST', params);


// 第一版获取表头，已废弃
export const getTableSet = params => WeaTools.callApi('/api/ec/dev/table/set', 'POST', params);

export const pageSize = params => WeaTools.callApi('/api/ec/dev/table/pageSize', 'POST', params);

// 获取table 全部数据
export const getTableDatas = params => WeaTools.callApi('/api/ec/dev/table/datas', 'POST', params);

// 获取table ops数据
export const getTableChecks = params => WeaTools.callApi('/api/ec/dev/table/checks', 'POST', params);

// 获取table 条目数量
export const getTableCounts = params => WeaTools.callApi('/api/ec/dev/table/counts', 'POST', params);

// 存储新的分页大小
export const setTablePageSize = params => WeaTools.callApi('/api/ec/dev/table/pageSize', 'POST', params);

// 自定义列
export const tableColSet = (params, method) => WeaTools.callApi('/api/ec/dev/table/showCol', method, params);

// 获取弹窗的table
export const getDialogTable = params => WeaTools.callApi('/api/offical/sendDoc/getWebAddresseeList', 'POST', params);
// 作废、撤销form接口
export const postWebSendDocCondition = (params = {}) => WeaTools.callApi('/api/offical/sendDoc/postWebSendDocCondition', 'POST', params);
// 撤销
export const revokedDoc = (params = {}) => WeaTools.callApi('/api/offical/sendDoc/revokedDoc', 'POST', params);
// 重新发送
export const resendDoc = (params = {}) => WeaTools.callApi('/api/offical/sendDoc/resendDoc', 'POST', params);
// 获取子流程
export const getSubReqInfo = (params = {}) => WeaTools.callApi('/api/odoc/odocAccountList/getSubReqInfo', 'POST', params);

